package com.bestcem.xm.om.dao.mapper;

import com.bestcem.xm.om.entity.EmailTemplate;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (DsOmEmailTemplate)表数据库访问层
 *
 * @author xuan.yang
 * @since 2022-01-14 14:30:52
 */
@Mapper
public interface EmailTemplateMapper {

    /**
     * 根据模板id查询邮件模板
     *
     * @param mailTemplateId
     * @return
     * @author xuan.yang@idiaoyan.com
     * @date 2021/11/12 11:52
     */
    EmailTemplate getMailTemplateById(String mailTemplateId);


    /**
     * saveMailTemplate
     * @param emailTemplate
     */
    void saveMailTemplate(EmailTemplate emailTemplate);

    /**
     * 根据id更新模板内容
     *
     * @param templateId
     * @param topic
     * @param content
     * @param links
     * @return
     * @author xuan.yang@idiaoyan.com
     * @date 2021/11/30 15:17
     */
    Long updateFristById(String templateId, String topic, String content, String links);

    /**
     * 根据id列表查询模板列表
     *
     * @param idList
     * @return java.util.List<com.bestcem.xm.om.entity.mongo.MailTemplate>
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2021/12/1 17:42
     */
    List<EmailTemplate> listByIds(List<String> idList);

}

